package main

import (
	"fmt"
	"golang.org/x/sync/errgroup"
	_ "peilian-api/bootstrap"
	"strconv"
	"time"
)

var (
	g errgroup.Group
)

//func mysqlserv() error {
//	variable.DB.MySQL.Set("gorm:table_options", "ENGINE=InnoDB").AutoMigrate(&tables.ResumeRecord{})
//	return nil
//}

func main() {
	//all := []tables.ResumeRecord{}
	//if err := variable.DB.MySQL.Model(&tables.ResumeRecord{}).Where("").Scan(&all).Error; err != nil {
	//	fmt.Println(err)
	//}
	//for _, v := range all {
	//	id, ori_text := v.ID, v.Opt_exp
	//	ori_text = function.FilterNumberAndMask(ori_text)
	//	result := variable.DB.MySQL.Model(&tables.ResumeRecord{}).Where("id=?", id).Update("opt_exp", ori_text)
	//	if result.Error != nil {
	//		fmt.Println(result.Error)
	//	}
	//}
	//res := function.FilterNumberAndMask("1. 77%\n 2. 44\n 33\n 66.")
	//fmt.Println(res)
	timestamp := time.Now().Unix()
	strconv.FormatInt(timestamp, 10)
	fmt.Println("获取10位时间戳：%s", timestamp)

}
